package com.niuwa.p2p.service.customer;

import com.niuwa.p2p.entity.customer.CertAuth;
import com.niuwa.p2p.entity.customer.CustSafetyProblem;
import com.niuwa.p2p.entity.customer.EmailAuth;
import com.niuwa.p2p.entity.customer.PhoneAuth;

public interface ICustAuthService {
	
	/**
	 * 身份认证【web】
	 * @param paramMap
	 * @return
	 */
	public int certAuth(CertAuth certAuth);
	
	/**
	 * 邮箱认证【web】
	 * @param paramMap
	 * @return
	 */
	public int emailAuth(EmailAuth emailAuth) throws Exception;
	
	/**
	 * 手机认证【web】
	 * @param paramMap
	 * @return
	 */
	public int phoneAuth(PhoneAuth phoneAuth);
	
	/**
     * 获取用户设置的密保问题[web]
     * @param custId
     * @return
     */
	public CustSafetyProblem selectSafetyProblemByCustId(long custId);
    
    /**
     * 更改用户密保问题[web]
     * @param record
     * @return
     */
	public int updateCustSafetyProblem(CustSafetyProblem record);
	
    /**
     * 新增密保问题[web]
     * @param record
     * @return
     */
	public int saveCustSafetyProblem(CustSafetyProblem record);
	
	
}
